<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="SclgtbprovincCreateDlg" widgetVar="SclgtbprovincCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateSclgtbprovincTitle}">

            <h:form id="SclgtbprovincCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{sclgtbprovincController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateSclgtbprovincLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{sclgtbprovincController.selected.nombre}" title="#{myBundle.CreateSclgtbprovincTitle_nombre}" required="true" requiredMessage="#{myBundle.CreateSclgtbprovincRequiredMessage_nombre}"/>

                        <p:outputLabel value="#{myBundle.CreateSclgtbprovincLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{sclgtbprovincController.selected.observaciones}" title="#{myBundle.CreateSclgtbprovincTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.CreateSclgtbprovincLabel_sclgtbzonaid}" for="sclgtbzonaid" />
                        <p:selectOneMenu id="sclgtbzonaid" value="#{sclgtbprovincController.selected.sclgtbzonaid}" required="true" requiredMessage="#{myBundle.EditSclgtbprovincRequiredMessage_sclgtbzonaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sclgtbzonaController.items}"
                                           var="sclgtbzonaidItem"
                                           itemValue="#{sclgtbzonaidItem}"
                                           itemLabel="#{sclgtbzonaidItem.sclgtbzonaid.toString()}"
                                           />
                            <f:converter binding="#{sclgtbzonaConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSclgtbprovincLabel_sclgtbpaisid}" for="sclgtbpaisid" />
                        <p:selectOneMenu id="sclgtbpaisid" value="#{sclgtbprovincController.selected.sclgtbpaisid}" required="true" requiredMessage="#{myBundle.EditSclgtbprovincRequiredMessage_sclgtbpaisid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sclgtbpaisController.items}"
                                           var="sclgtbpaisidItem"
                                           itemValue="#{sclgtbpaisidItem}"
                                           itemLabel="#{sclgtbpaisidItem.sclgtbpaisid.toString()}"
                                           />
                            <f:converter binding="#{sclgtbpaisConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{sclgtbprovincController.saveNew}" value="#{myBundle.Save}" update="display,:SclgtbprovincListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,SclgtbprovincCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="SclgtbprovincCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
